/*
 * Dto class 
 * Created on 6 juin 2013 ( Time 15:03:36 )
 */
// This Bean has a basic Primary Key (not composite) 

package org.demo.pointage.bean;

import java.io.Serializable;

import javax.persistence.*;

import javax.validation.constraints.* ;
import org.hibernate.validator.constraints.* ;

import java.util.Date;

import javax.persistence.*;

@Entity
@Table(name="pointage", catalog="dbscoremanager" )
public class Pointage implements Serializable
{
    private static final long serialVersionUID = 1L;

    //----------------------------------------------------------------------
    // ENTITY PRIMARY KEY ( BASED ON A SINGLE FIELD )
    //----------------------------------------------------------------------
    @Id
    @Column(name="idPointage", nullable=false)
    private int        idpointage   ;


    //----------------------------------------------------------------------
    // ENTITY FIELDS 
    //----------------------------------------------------------------------    
    @Column(name="idEntreeSortie", nullable=false)
    private int        identreesortie ;
    @Column(name="numPointage")
    private Integer    numpointage  ;
    @Column(name="modeVerification", length=254)
    private String     modeverification ;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="jourPointage")
    private Date       jourpointage ;

    //----------------------------------------------------------------------
    // ENTITY LINKS ( RELATIONSHIP )
    //----------------------------------------------------------------------

    //----------------------------------------------------------------------
    // CONSTRUCTOR(S)
    //----------------------------------------------------------------------
    public Pointage()
    {
        super();
    }
    
    //----------------------------------------------------------------------
    // GETTER & SETTER FOR THE KEY FIELD
    //----------------------------------------------------------------------
    public void setIdpointage( int value )
    {
        this.idpointage = value;
    }
    public int getIdpointage()
    {
        return this.idpointage;
    }

    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR FIELDS
    //----------------------------------------------------------------------
    //--- DATABSE MAPPING : idEntreeSortie ( INT ) 
    public void setIdentreesortie( int value )
    {
        this.identreesortie = value;
    }
    public int getIdentreesortie()
    {
        return this.identreesortie;
    }

    //--- DATABSE MAPPING : numPointage ( INT ) 
    public void setNumpointage( Integer value )
    {
        this.numpointage = value;
    }
    public Integer getNumpointage()
    {
        return this.numpointage;
    }

    //--- DATABSE MAPPING : modeVerification ( VARCHAR ) 
    public void setModeverification( String value )
    {
        this.modeverification = value;
    }
    public String getModeverification()
    {
        return this.modeverification;
    }

    //--- DATABSE MAPPING : jourPointage ( DATETIME ) 
    public void setJourpointage( Date value )
    {
        this.jourpointage = value;
    }
    public Date getJourpointage()
    {
        return this.jourpointage;
    }


    
    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR LINKS
    //----------------------------------------------------------------------


}
